import request from './request.js'
/** 
 * 单聊
 * followList关注列表
 * followAdd添加关注
 * followCancel取消关注
 * crowdShield屏蔽群
**/
const chat = {
	followList(data) {
		return request.post(`/chat/followList`,data)
	},
	followAdd(data) {
		return request.post(`/chat/followAdd`,data)
	},
	followCancel(data) {
		return request.post(`/chat/followCancel`,data)
	},
	
	//群聊
	//创建群
	crowdCreate(data){
		return request.post(`/chat/crowdCreate`,data)
	},
	//加入群
	crowdAdd(data){
		return request.post(`/chat/crowdAdd`,data)
	},
	//群列表
	getCrowdInfo(data){
		return request.post(`/chat/getCrowdInfo`,data)
	},
	getCrowdList(data){
		return request.post(`/chat/getCrowdList`,data)
	},
	//群成员列表
	crowdMenberList(data){
		return request.post(`/chat/crowdMenberList`,data)
	},
	//修改群
	crowdEdit(data){
		return request.post(`/chat/crowdEdit`,data)
	},
}
export default chat
